#ifndef MONITOR_H
#define MONITOR_H
#include <string>
#include <map>
#include "DataContainer.h"
using namespace std;


class Monitor
{
    public:
        Monitor(string);
        string id;
        double avgTranPeak, avgVertPeak, avgMicPeak, avgPVS;
        double medianTranPeak, medianVertPeak, medianMicPeak, medianPVS;
        double modeTranPeak, modeVertPeak, modeMicPeak, modePVS;
        vector<DataContainer*> dataContainers;
        DataContainer* getDataContainer(string);
        map<string, double> values;
        void finalize();
        void findAverage(string setName, string valueName);
        void findLowest(string setName, string valueName);
        void findMedian(string setName, string valueName);
        void findHighest(string setName, string valueName);
        virtual ~Monitor();
    protected:
    private:
};

#endif // MONITOR_H
